from time import sleep
from threading import Thread, Lock


class Account(object):
    __slots__ = ('_money')

    def __init__(self, money):
        self._balace = 0
        self._lock = Lock()
        
    def deposit(self, money):
        self._lock.acquire()
        try:
            new_balance = self._balace + money
            sleep(0.01)
            self._balace = new_balance
        finally:
            self._lock.release()